package cn.edu.scau.cmi.ema.dao;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Law;
import org.springframework.dao.DataAccessException;

import java.util.Set;

public interface LawDAO extends JpaDao<Law> {

	public Law findLawById(Integer id) throws DataAccessException;

	public Law findLawById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Law> findLawByName(String name) throws DataAccessException;

	public Set<Law> findLawByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Law> findLawByNameContaining(String name_1) throws DataAccessException;

	public Set<Law> findLawByNameContaining(String name_1, int startResult, int maxRows) throws DataAccessException;

	public Set<Law> findLawByDescription(String description) throws DataAccessException;

	public Set<Law> findLawByDescription(String description, int startResult, int maxRows) throws DataAccessException;

	public Set<Law> findLawByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Law> findLawByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Law findLawByPrimaryKey(Integer id) throws DataAccessException;

	public Law findLawByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Law> findLawsByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Law> findAllLaws() throws DataAccessException;

	public Set<Law> findAllLaws(int startResult, int maxRows) throws DataAccessException;

	public Set<Law> findLawByCompositeProperities(String sql, int startResult, int maxRows) throws DataAccessException;

	public Set<Law> findLawsByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Law findLawByPhysicalPrimaryKey(String name) throws DataAccessException;

	public Law findLawByPhysicalPrimaryKey(String name, int startResult, int maxRows) throws DataAccessException;
}
